2005-09-09 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set
+ unsigned ints to -1. (#315481, Kjartan Maraas)
+
* gtk/gtkcalendar.c (gtk_calendar_init): first_weekday is relative
to week_1stday, not to Sunday. Gotta love the ISO 14652 guys...
(#314473, Stanislav Brabec)
2005-09-09 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkwindow.c (gtk_window_parse_geometry): Don't set
+ unsigned ints to -1. (#315481, Kjartan Maraas)
+
* gtk/gtkcalendar.c (gtk_calendar_init): first_weekday is relative
to week_1stday, not to Sunday. Gotta love the ISO 14652 guys...
(#314473, Stanislav Brabec)
result = gtk_XParseGeometry (geometry, &x, &y, &w, &h);
- if ((result & WidthValue) == 0 ||
- w < 0)
- w = -1;
- if ((result & HeightValue) == 0 ||
- h < 0)
- h = -1;
-
size_set = FALSE;
if ((result & WidthValue) || (result & HeightValue))
{
- gtk_window_set_default_size_internal (window, TRUE, w, TRUE, h, TRUE);
+ gtk_window_set_default_size_internal (window,
+ TRUE, result & WidthValue ? w : -1,
+ TRUE, result & HeightValue ? h : -1,
+ TRUE);
size_set = TRUE;
}